guint x, y;
float aspect_ratio;
- /* Remove the old grid (if there is one) */
- grid = gtk_bin_get_child (GTK_BIN (frame));
- if (grid)
- gtk_aspect_frame_set_child (GTK_ASPECT_FRAME (frame), NULL);
-
/* Create a new grid */
grid = gtk_grid_new ();
gtk_widget_set_can_focus (grid, TRUE);
{
GtkWidget *grid;
- grid = gtk_bin_get_child (GTK_BIN (frame));
+ grid = gtk_aspect_frame_get_child (GTK_ASPECT_FRAME (frame));
if (solved)
start_puzzle (puzzle);
else
start_puzzle (puzzle);
popover = gtk_widget_get_ancestor (size_spin, GTK_TYPE_POPOVER);
gtk_popover_popdown (GTK_POPOVER (popover));
- grid = gtk_bin_get_child (GTK_BIN (frame));
+ grid = gtk_aspect_frame_get_child (GTK_ASPECT_FRAME (frame));
gtk_widget_grab_focus (grid);
}